<script type="text/javascript"><!--//--><![CDATA[//><!--
   
    $(document).ready(function() {
        // Setup Form
        $('#form_popup').setupForm([
            { name: 'nama_cabang', type: 'text', size: 'medium', maxlength: 40, noempty: true },
            { name: 'nama_kasir', type: 'text', size: 'medium', maxlength: 225, noempty: true},
            { name: 'kode_kasir', type: 'text', size: 'medium', maxlength:100, noempty: true }
            // { name: 'full_name', type: 'text', size: 'long', maxlength: 225 },
            // { name: 'kasir', type: 'text', size: 'medium', maxlength:60 },
            // { name: 'unit', data:[ {value:'KST', display:'KST'}, {value:'BAK',display:'BAK'}, {value:'RES',display:'RES'} ], size: 'short' },
            // { name: 'status', data:[ {value:'1', display:'Aktif'}, {value:'0',display:'Non Aktif'} ], size: 'short' }
        ], <?php echo json_encode($data); ?>);

        // $('#kasir_id').readonly();
        
        // <?php if($mode=="edit"){ ?>
        
        // //$('#user_password').setTooltips('kosongkan jika tidak ingin merubah user_password');
        // $('#user_password').after('<div style="font-size:9px;">kosongkan jika tidak ingin merubah user_password</div>');
        // <?php } ?>  

        // <?php if($mode=="create"){ ?>
        // var kasir_id_auto = '<?php echo $kasir_id; ?>';
        // $('#kasir_id').val(kasir_id_auto);
        // <?php } ?>      
        
        $('#tt').tabs({  
            border:false,
            onSelect:function(title){  
                    return false;
            }  
        });  

        // Focus at First Object
        $('#form_popup').focusFirst();
    
//--><!]]></script>

<div id="tt" class="easyui-tabs" style="width:550px;height:380px;">  
    <div title="Data User" style="padding:10px;">
        <div id="form_popup_message" style="display:none;"></div>
        <table class="tb_form" style="display:none;" cellpadding="0" cellspacing="0">
        <tr>
            <td class="label">Nama Cabang</td>
            <td><select id="nama_cabang" />
                <option></option></td>
        </tr>
        <tr>
            <td class="label">Nama Kasir</td>
            <td><input id="nama_kasir" /></td>
        </tr>
         <tr>
            <td class="label">Kode Kasir</td>
            <td><input id="kode_kasir" /></td>
        </tr>
        </table>
    </div>
</div>
